package admin

import (
	"context"
	"server/internal/service"

	"server/api/admin/lesson"
)

func (c *ControllerLesson) CategoryList(ctx context.Context, req *lesson.CategoryListReq) (res *lesson.CategoryListRes, err error) {
	res = new(lesson.CategoryListRes)
	res.Data, err = service.LessonCategory().List(ctx)
	return
}
